{include file="common/header"/}

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form class="layui-form layui-form-pane" lay-filter="form">
                        <div class="layui-form-item">
                            <label class="layui-form-label">模型{:lang('name')}</label>
                            <div class="layui-input-inline">
                                <input type="text" name="title" lay-verify="required" placeholder="{:lang('pleaseEnter')}模型名称" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">
                                *
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">表名</label>
                            <div class="layui-input-inline">
                                <input type="hidden" name="oldname" value="{$info.name}">
                                <input type="text" name="name" lay-verify="required" placeholder="{:lang('pleaseEnter')}表名"  class="layui-input">
                            
                            </div>
                            <div class="layui-form-mid layui-word-aux">
                                *
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">列表页字段</label>
                            <div class="layui-input-inline">
                                <input type="text" name="listfields" value="" placeholder="{:lang('pleaseEnter')}列表页调用字段" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">描述</label>
                            <div class="layui-input-inline">
                                <textarea name="description" placeholder="{:lang('pleaseEnter')}描述" class="layui-textarea"></textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="hidden" name="id"  >
                                <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


{include file="common/footer"/}
<script>
layui.use(['form'], function () {
    var $ = layui.$;
    var form = layui.form;
    var info = '';
    info = {:json_encode($info)};
    form.val("form", info);
});
</script>